/*
 ============================================================================
 Name		: YuebaoMagazineDocument.cpp
 Author	  : wangchao
 Copyright   : 
 Description : CYuebaoMagazineDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "YuebaoMagazineAppUi.h"
#include "YuebaoMagazineDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CYuebaoMagazineDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CYuebaoMagazineDocument* CYuebaoMagazineDocument::NewL(CEikApplication& aApp)
{
    CYuebaoMagazineDocument* self = NewLC( aApp );
    CleanupStack::Pop( self );
    return self;
}

// -----------------------------------------------------------------------------
// CYuebaoMagazineDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CYuebaoMagazineDocument* CYuebaoMagazineDocument::NewLC(CEikApplication& aApp)
{
    CYuebaoMagazineDocument* self = new ( ELeave ) CYuebaoMagazineDocument( aApp );

    CleanupStack::PushL( self );
    self->ConstructL( );
    return self;
}

// -----------------------------------------------------------------------------
// CYuebaoMagazineDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CYuebaoMagazineDocument::ConstructL()
{
    // No implementation required
}

// -----------------------------------------------------------------------------
// CYuebaoMagazineDocument::CYuebaoMagazineDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CYuebaoMagazineDocument::CYuebaoMagazineDocument(CEikApplication& aApp) :
    CAknDocument( aApp )
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CYuebaoMagazineDocument::~CYuebaoMagazineDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CYuebaoMagazineDocument::~CYuebaoMagazineDocument()
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CYuebaoMagazineDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CYuebaoMagazineDocument::CreateAppUiL()
{
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return new ( ELeave ) CYuebaoMagazineAppUi;
}

// End of File
